package com.hyperf.spring.boot.autoconfigure.snowflake;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author lizhaoyang
 */
@Data
@ConfigurationProperties(prefix = "hyperf.snowflake")
public class SnowflakeProperties {
    /**
     * 是否开启雪花算法
     */
    private boolean enabled = true;

    /**
     * 雪花算法机器注册方式
     */
    private WorkerRegisterTypeEnum workerRegisterType = WorkerRegisterTypeEnum.ZOOKEEPER;
}
